package mware_lib.communication;

import java.io.Serializable;

public class messRebind implements Serializable{
	private static final long serialVersionUID = 7679473700385523425L;
	private Object toTransmit;
	private String name;
	private String host;
	private int port;
	private String typeof;
	public Class<?> result=null;
	public Object[] args;

	public messRebind(Object o, String name, String host, int port, Class<?> result, String typeof)
	{
		this.toTransmit = o;
		this.name = name;
		this.host = host;
		this.port = port;
		this.typeof = typeof;
		this.result = result;
	}
	
	public messRebind(Object o, String name, String host, int port, Class<?> result)
	{
		this.toTransmit = o;
		this.name = name;
		this.host = host;
		this.port = port;
		this.result = result;
	}
	
	public messRebind(String name, String typeof, Object[] args)
	{
		this.name=name;
		this.typeof=typeof;
		this.args = args;
	}

	/**
	 * @return the toTransmit
	 */
	public Object getToTransmit() {
		return toTransmit;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	
	public String getTypeof() {
		return typeof;
	}
	
	public int getPort() {
		return port;
	}

	public String getHost() {
		return host;
	}

}
